package org.mayanjun.code.easyweb.demo.interceptor;

import org.mayanjun.code.easyweb.springmvc.interceptor.AnnotationBasedHandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author bianliang (02/08/2017)
 */
public class TimeInterceptor extends AnnotationBasedHandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return true;
    }

    public int getOrder() {
        return 1;
    }
}
